@*
    For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title> Pear Admin Layui </title>
    <!-- �� �� �� ʽ -->
    <link rel="stylesheet" href="~/lib/Pear-Admin-Layui/component/pear/css/pear.css" />
    <!-- �� �� �� ʽ-->
    <link rel="stylesheet" href="~/lib/Pear-Admin-Layui/admin/css/load.css" />
    <!-- �� �� �� ʽ -->
    <link rel="stylesheet" href="~/lib/Pear-Admin-Layui/admin/css/admin.css" />
</head>
<!-- �� �� �� �� -->
<body class="layui-layout-body pear-admin">
    <!-- �� �� �� �� -->
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <!-- �� �� �� �� �� �� -->
            <ul class="layui-nav layui-layout-left">
                <li class="collaspe layui-nav-item"><a href="#" class="layui-icon layui-icon-shrink-right"></a></li>
                <li class="refresh layui-nav-item"><a href="#" class="layui-icon layui-icon-refresh-1" loading=600></a></li>
            </ul>
            <!-- �� �� �� �� �� �� -->
            <div id="control" class="layui-layout-control"></div>
            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item layui-hide-xs"><a href="#" class="fullScreen layui-icon layui-icon-screen-full"></a></li>
                <li class="layui-nav-item layui-hide-xs"><a href="http://www.pearadmin.com" class="layui-icon layui-icon-website"></a></li>
                <li class="layui-nav-item layui-hide-xs message"></li>
                <li class="layui-nav-item">
                    <!-- ͷ �� -->
                    <a href="javascript:;">
                        <img src="admin/images/avatar.jpg" class="layui-nav-img">
                    </a>
                    <!-- �� �� �� �� -->
                    <dl class="layui-nav-child">
                        <dd><a user-menu-url="view/system/person.html" user-menu-id="5555" user-menu-title="��������">��������</a></dd>
                        <dd><a href="javascript:void(0);" class="logout">ע����¼</a></dd>
                    </dl>
                </li>
                <!-- �� �� �� �� -->
                <li class="layui-nav-item setting"><a href="#" class="layui-icon layui-icon-more-vertical"></a></li>
            </ul>
        </div>
        <!-- �� �� �� �� -->
        <div class="layui-side layui-bg-black">
            <!-- �� �� �� �� -->
            <div class="layui-logo">
                <!-- ͼ �� -->
                <img class="logo"></img>
                <!-- �� �� -->
                <span class="title"></span>
            </div>
            <!-- �� �� �� �� -->
            <div class="layui-side-scroll">
                <div id="sideMenu"></div>
            </div>
        </div>
        <!-- �� ͼ ҳ �� -->
        <div class="layui-body">
            <!-- �� �� ҳ �� -->
            <div id="content"></div>
        </div>
        <!-- �� �� �� -->
        <div class="pear-cover"></div>
        <!-- �� �� �� ��-->
        <div class="loader-main">
            <div class="loader"></div>
        </div>
    </div>
    <!-- �� �� �� �� �� �� �� -->
    <div class="pear-collasped-pe collaspe">
        <a href="#" class="layui-icon layui-icon-shrink-right"></a>
    </div>
    <!-- �� �� �� �� -->
    <script src="~/lib/Pear-Admin-Layui/component/layui/layui.js"></script>
    <script src="~/lib/Pear-Admin-Layui/component/pear/pear.js"></script>
    <!-- �� �� �� ʼ �� -->
    <script>
			layui.use(['admin','jquery','convert','popup'], function() {
				var admin = layui.admin;
				var $ = layui.jquery;
				var convert = layui.convert;
				var popup = layui.popup;

				// ��ʼ�������û���Ϣ
				admin.setAvatar("admin/images/avatar.jpg","������ʽ");

				// ��Ŀ¼�� pear.config.yml �ļ�Ϊ��ʼ������
				// �����ͨ�� admin.setConfigPath �����޸������ļ�λ��
				// �����ͨ�� admin.setConfigType �����޸������ļ�����
				admin.setConfigType("json");
				admin.setConfigPath("config/pear.config.json");
				admin.render();

				// �ǳ��߼�
				admin.logout(function(){

					popup.success("ע���ɹ�",function(){
						location.href = "login.html";
					})

					// ע���߼� ���� true / false
					return true;
				})

				// ��ʼ����Ϣ�ص�
				admin.message();

				// ��д��Ϣ�ص� [��Ϣ�б�����¼�]
				// admin.message(function(id, title, context, form) {});

			})
    </script>
</body>
</html>
